package ciyuan.Gui.Screen;

import ciyuan.MainClass;
import com.mojang.blaze3d.matrix.MatrixStack;
import com.mojang.blaze3d.systems.RenderSystem;
import net.minecraft.client.gui.screen.Screen;
import net.minecraft.util.ResourceLocation;
import net.minecraft.util.text.TranslationTextComponent;

public class SkillScreen extends Screen {

    private static final ResourceLocation SKILL_SCREEN_RESOURCE = new ResourceLocation(MainClass.MODID, "textures/gui/skill.png");

    protected SkillScreen() {
        super(new TranslationTextComponent("ciyuan.gui.title1"));
    }

    @Override
    public void renderBackground(MatrixStack matrixStack) {
        super.renderBackground(matrixStack);
        RenderSystem.color4f(1.0F, 1.0F, 1.0F, 1.0F);
        this.minecraft.getTextureManager().bind(SKILL_SCREEN_RESOURCE);
        int textureWidth = 300;
        int textureHeight = 166;
        blit(matrixStack, this.width / 2 - textureWidth / 2, 10, 0, 0, textureWidth, textureHeight, textureWidth, textureHeight);
    }

    private void renderSkillOptions(MatrixStack matrixStack) {

    }

    @Override
    public void render(MatrixStack matrixStack, int mouseX, int mouseY, float particleTick) {
        this.renderBackground(matrixStack);

        super.render(matrixStack, mouseX, mouseY, particleTick);
    }

    @Override
    public void init() {
        super.init();
    }
}
